package cn.touna.jss.modules.custom.batch;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.client.RestTemplate;

import java.io.*;

public class FileRequestThread implements Runnable {
    private File inputFile,outputFile;
    private CsvReaderConfig readerConfig;
    private RequestParamProcessor paramProcessor;
    public FileRequestThread(File inputFile,File outputFile,CsvReaderConfig readerConfig,RequestParamProcessor paramProcessor){
        this.inputFile = inputFile;
        this.outputFile = outputFile;
        this.readerConfig = readerConfig;
        this.paramProcessor = paramProcessor;
    }

    private RestTemplate restTemplate = new RestTemplate();

    @Override
    public void run() {

        CsvReader csvReader = new CsvReader(inputFile,readerConfig);
        JSONObject row = null;
        try{
            while((row = csvReader.read()) != null){

            }
        }catch (IOException e){

        }
    }
}
